package com.speech.net.result;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by XuLH on 2018/7/10.
 */
public class UserPropertyRankData implements Comparable<UserPropertyRankData>
{
	@JsonProperty("uid")
	public Long uid;

	@JsonProperty("property")
	public Double dProperty;

	@JsonProperty("invite_count")
	public Integer iInviteCount;

	@JsonProperty("nick")
	public String strNickName;

	@JsonIgnore
	public Integer iInviteLv1;

	@JsonIgnore
	public Integer iInviteLv2;

	@JsonIgnore
	public Long lPhone;

	@JsonIgnore
	public Boolean isQueried = false;

	public UserPropertyRankData(){}

	public UserPropertyRankData(Long u, Double p)
	{
		uid=u;
		dProperty=p;
	}

	@Override
	public int compareTo(UserPropertyRankData c)
	{
		if(this.dProperty < c.dProperty)
			return 1;
		else if(this.dProperty > c.dProperty)
			return  -1;
		else
			return 0;
	}
}
